package com.example.xinguanvue.service.impl;

import com.example.xinguanvue.bean.Menu;
import com.example.xinguanvue.mapper.MenuMapper;
import com.example.xinguanvue.service.MenuService;
import com.example.xinguanvue.vo.MenuVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MenuServiceImpl implements MenuService {

    private MenuMapper menuMapper;

    @Autowired
    public void setMenuMapper(MenuMapper menuMapper) {
        this.menuMapper = menuMapper;
    }

    //查询权限
    @Override
    public List<MenuVo> getListMenu(String queryMenuParam) {
        return menuMapper.selectAll();
    }
}
